lcDrwSave Home

Saves a drawing's data into a file. LiteCAD have a native file format, other formats can be saved via plugins.

 BOOL lcDrwSave (
   HANDLE hDrw,
   LPCWSTR szFileName
   BOOL bCreateBak,
   HANDLE hLcWnd
 );

Parameters
hDrw
  Handle to a drawing object.
szFileName
  Drawing's filename or keyword. The following keywords are allowed:
"<Origin>" - save with original filename (LC_PROP_DRW_FILENAME property).
"<Dialog>" - user will select a file by the "Save File" dialog.
bCreateBak
  Create backup file if a drawing will be saved with the same filename as loaded. The backup file will have the original filename with BAK extention.
hLcWnd
  Handle to a parent window for the "Save File" dialog. Specify NULL if not used.

Return Value

  If the function succeeds, the return value is nonzero (TRUE).

See Also

  lcDrwSaveMemlcDrwLoad